package cn.design;

import cn.design.realize.Singleton;

/**
 * @author dlq
 * @description 测试类--单例
 * @date 2020/9/10 9:18
 * @since 1.0
 */
public class SingletonTest {
    public static void main(String[] args) {
        Singleton singleton1 = Singleton.getSingleton();
        Singleton singleton2 = Singleton.getSingleton();
        Singleton singleton3 = Singleton.getSingleton();
        Singleton singleton4 = Singleton.getSingleton();

        System.out.println(singleton1);
        System.out.println(singleton2);
        System.out.println(singleton3);
        System.out.println(singleton4);
    }
}
